CC=g++
AR=ar
CPPFLAGS=-Wall -g -DNDEBUG -D_GNU_SOURCE $(INCPATH) -std=gnu++0x -fPIC

INCPATH=-I ./inc

OUTLIBPATH=../x64/

SRCS := $(wildcard ./src/*.cpp)
OBJS := $(patsubst %.cpp, %.o, $(SRCS))

LIBNAME=$(OUTLIBPATH)/libu.a

$(LIBNAME): $(OBJS)
	$(AR) cr $(LIBNAME) $(OBJS)

%.o:%.cpp 
	$(CC) $(CPPFLAGS) \
	-c $<  -o $@

all: $(LIBNAME)

clean:
	-rm -f $(OBJS) $(LIBNAME)




